package com.jrx.anytxn.param.job.investor.file.step;

import com.jrx.anytxn.param.dto.investor.FileBean;
import com.jrx.anytxn.param.entity.GaInvestorSubjectConfig;
import com.jrx.anytxn.param.service.investor.IInvestorParamFileService;
import org.springframework.batch.item.ItemProcessor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 利息计提 - processor
 *
 * @author liuyang
 * @date 2020-05-26
 */
@Service
public class GlProcessor implements ItemProcessor<GaInvestorSubjectConfig, FileBean> {



    @Autowired
    private IInvestorParamFileService fileService;

    @Override
    public FileBean process(GaInvestorSubjectConfig item) {
        return fileService.createGlFileMessage(item);
    }

}
